Skip to content

Conversation

@wilsonccccc
Copy link
Contributor

Fix implemented:

  • Extended app/api/schemas/openai.py
  • Added full “tool-calls” data models (OpenAIToolCallFunctionModel, OpenAIToolCallModel).
  • Enhanced ChatMessage with optional tool_calls and tool_call_id.
  • Allowed unknown extra keys for forward-compatibility (extra="allow").
  • Added a validator that explicitly permits content: null.
  • No runtime logic needed to change – downstream provider adapters already ignore these extra fields and forward the payload unchanged.
  • With these changes the exact same JSON you send to api.openai.com is now accepted by Forge

@wilsonccccc wilsonccccc merged commit 6777451 into TensorBlock:main Jul 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant